package com.app.entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @autor xiaoyu.fang
 * @date 2019/10/11 14:50
 */
@Data
@Document(collection = "s_popular")
public class Popular implements Serializable {
    @Id
    private ObjectId id;
    /**
     * 标题
     */
    private String title;
    /**
     * 图片
     */
    private String image;
    /**
     * 标签
     */
    private String tag;
    /**
     * 创建时间
     */
    private Date createAt;
}
